package mspbots.smileback.data.core.synclogs;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;
import java.util.UUID;

/**
 * mspbots.data.autotask.core.companies.Company
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/8/4
 */
@Data
@Builder
@Table("smileback_sync_logs")
public class SyncLogs {

    @Id
    private Long id;

    private Long tenantId;
    /**
     * Request data id
     */
    private UUID requestId;

    private JsonNode params;
    /**
     * Request date time
     */
    private LocalDateTime time;

    /**
     * Total time to request data, type millisecond
     */
    private long elapsedTime;

    /**
     * Total request data count
     */
    private int count;

    /**
     * Request  status
     */
    private int status;

    private String action;
    /**
     * Request result data collection
     */
    private String msg;

}
